
const net = require('net')

var cli = net.connect({ port: 8811 }, function () {
    console.log('connect server')
})

cli.on('data', function (data) {
    console.log('rcv data:', data.toString())
    cli.end()
})

cli.on('end', function () {
    console.log('cli is closed')
})

